home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 February
/
Macworld (1999-02).dmg
/
Cinema 4D GO demo
/
Plugin
/
Editor
/
SetUndo.cof
< prev
Wrap
Text File
|
1998-03-16
|
403b
|
24 lines
// Set Undo Depth
// (c) Christian Losch 1997
// Maxon Computer GmbH
Function(doc)
{
var d = new(SimpleDialog);
d->SetTitle("Set Undo Depth");
d->SetData(0,"Depth",FIELD_INTEGER,1,100,10);
if (!d->DoDialog()) return FALSE;
doc->SetUndoDepth(d->GetData(0));
doc->SendMessage(DOCUMENT_CHANGED);
return TRUE;
}
main()
{
RegisterMenuHook("Set Undo Depth","Function");
}